<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ include file="/WEB-INF/jsp/include.jsp"%>
<%@page import="java.util.List"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Lecture List / ICES scheduler</title>
<LINK href="css/lectureList.css" rel="stylesheet" type="text/css">
</head>
<body text="#000000" marginwidth="0" marginheight="0" bgcolor="#ffffff"
  onload="window.name = 'main';" topmargin="0" leftmargin="0" background="img/background3.gif">

<center><%@ include file="/WEB-INF/jsp/header1.jsp"%>

<table class="table_schedule_list" width="760" border="0" background="img/background4.gif">
  <thead>
    <tr>
      <th></th>
      <th>Speaker</th>
      <th>Topic</th>
      <th>Time</th>
      <th>Location</th>
    </tr>
  </thead>

  <tbody>
    <c:forEach items="${timeSlots}" var="timeSlot">

      <tr height="1">
        <td colspan="5" class="td_row_line"></td>
      </tr>

      <tr class="<c:if test="${highlightId == timeSlot.lecture.internalId}">,highlight</c:if>">

        <td rowspan="2">
        <button
          onclick="location.assign( 
          '<c:url value="lectureDetail.spring?lectureTimeSlotId=${timeSlot.internalId}" />');">Lecture
        detail</button>
        <br />
        <c:if test="${timeSlot.lecture.paperFilename}">
          <button
            onclick="location.assign('<c:url value="fileDownload.spring?folder=upload&file=${timeSlot.lecture.paperFilename}" />');">Download
          paper</button>
        </c:if></td>

        <td><c:out value="${timeSlot.lecture.speaker.name}" /><br />
        <c:out value="${timeSlot.lecture.speaker.organization}" /></td>

        <td class="td_title"><c:out value="${timeSlot.lecture.topic}" /></td>

        <td><a class="a_lectureDate"
          title="<fmt:formatDate value="${timeSlot.beginTime}" type="date" dateStyle="full" />"><fmt:formatDate
          value="${timeSlot.beginTime}" pattern="EEE, MMM-dd-yyyy" /></a><br />
        <a class="a_lectureTime"
          title="<fmt:formatDate value="${timeSlot.beginTime}" type="time" timeStyle="full" />"><fmt:formatDate
          value="${timeSlot.beginTime}" type="time" timeStyle="short" /></a> - <a class="a_lectureTime"
          title="<fmt:formatDate value="${timeSlot.endTime}" type="time" timeStyle="full" />"><fmt:formatDate
          value="${timeSlot.endTime}" type="time" timeStyle="short" /></a></td>

        <td><c:out value="${timeSlot.reservedPlace}" /></td>

      </tr>

      <tr class="tr_note">
        <td colspan="4"><c:if
          test="${fn:length(timeSlot.lecture.lectureNotice.noticeMessage) > 0}">Note: <c:out
            value="${timeSlot.lecture.lectureNotice.noticeMessage}" />
        </c:if></td>
      </tr>

    </c:forEach>
  </tbody>

</table>

<%@ include file="/WEB-INF/jsp/tail1.jsp"%></center>
</body>
</html>
